<?php
/**
 * Used to check if the user has a certain permission
 */
class Bliss_User_Plugin_IsAllowed extends Bliss_User_Plugin_Abstract
{
	protected $_acl;

	protected function init()
	{
		$this->_acl	= new Bliss_User_Acl();
	}

	public function isAllowed($resource, $permission)
	{
		return $this->_acl->isAllowed($this->_user->group, $resource, $permission);
	}
}
?>